package xyz.xtt.activity.constants;

import lombok.Getter;
import xyz.xtt.common.exception.BaseMessage;

/**
 * 通通链操作错误信息类
 * 
 * @author huqibo
 */
/**
 * @author huqibo
 * @date 2025/02/10
 */
@Getter
public enum ErrorMessage implements BaseMessage {

	/**
	 * unknown error
	 */
	UNKNOWN_ERROR(9999, "unknown error"),
	/**
	 * 参数错误
	 */
	ARGUMENT_NOT_VALID(1, "参数错误"),

	;

	/**
	 * 错误码
	 */
	private final Integer code;

	/**
	 * 提示内容
	 */
	private final String message;

	ErrorMessage(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
}
